<?php 
if(!($this->session->userdata('lang')))
{
	$this->session->set_userdata('lang','russian');
}
$this->lang->load('static', $this->session->userdata('lang'));

?>
<h2><?php echo lang('services')?></h2>
<script type="text/javascript">

var name='<?php echo lang('name')?>';
var desc='<?php echo lang('desc')?>';

</script>


<script type="text/javascript" src="/js/admin/tourlist.js"></script>
<?php if($this->session->userdata('userType')==2){?>
<div style="display: block">
<div class='button2 addTypeService'>
	<div class='bleft'>
		<div class='bright'>
			<span class='bcenter'>
				<?php echo lang('addservice')?>
			</span>
		</div>
	</div>
</div>

<div class='button2 addService'>
	<div class='bleft'>
		<div class='bright'>
			<span class='bcenter'>
				<?php echo lang('addservicetype')?>
			</span>
		</div>
	</div>
</div>
</div>
<div style="float:none">&nbsp;</div>
<div class='modalW'></div>
<div class='modalW2'></div>
<?php }?>
<script>
var option=[];
	 option[1]='<?php #echo $options1;?>';
	 option[2]='<?php #echo $options2;?>';
	 option[3]='<?php #echo $options3;?>';
	 var list=[];
	 list[1]='<?php #echo $list1;?>';
	 list[2]='<?php #echo $list2;?>';
</script>
<div style="float:none">&nbsp;</div>
<div class='button' link='hotel'>
	<div>
		<div>
			<span class='bcenter'>
				<?php echo lang('hotels')?>
			</span>
		</div>
	</div>
</div>
<div class='button' link='excursion'>
	<div class='bleft'>
		<div class='bright'>
			<span class='bcenter'>
				<?php echo lang('excurs')?>
			</span>
		</div>
	</div>
</div>
<div class='button' link='tours'>
	<div class='bleft'>
		<div class='bright'>
			<span class='bcenter'>
				<?php echo lang('tours')?>
			</span>
		</div>
	</div>
</div>
<div class='button' link='showplace'>
	<div class='bleft'>
		<div class='bright'>
			<span class='bcenter'>
				<?php echo lang('showplace')?>
			</span>
		</div>
	</div>
</div>
<div class='button' link='city'>
	<div>
		<div>
			<span class='bcenter'>
				<?php echo lang('city')?>
			</span>
		</div>
	</div>
</div>
<div style="float:none">&nbsp;</div>
<br/>
<hr>

<div >
<div id='options'></div>
<div id='masterError'></div>
<div id='clone'></div>
<div id='showplace_options' style="display:none">



</div>


<table width="100%" border="0" padding=0 margin=0 id='listType'>

<?php 
	if(isset($list))
	{
		foreach($list as $key=>$item)
			{
				echo '	<tr >
							<td width="2%"> &nbsp;</td>
							<td><h2></h2></td>
							<td width="2%"> &nbsp;</td>
						</tr>
						<tr >
							<td width="2%"> &nbsp;</td>
							<td>
								<div id="pager'.$key.'"></div>
								<table id="table'.$key.'"></table>
								<script> createTable("'.$key.'");</script>
							</td>
							<td width="2%"> &nbsp;</td>
						</tr>
				';
			
			}
	}
	?>
 </table>
</div>



